kineticscrolling: avoid stutter at tail of kinetic deceleration
authorChristian Hergert <chergert@redhat.com>
Sun, 24 Apr 2016 09:41:26 +0000 (02:41 -0700)
committerChristian Hergert <chergert@redhat.com>
Sun, 24 Apr 2016 10:49:20 +0000 (03:49 -0700)
commit4f63d839550f7a9038b391e7d3e1e6fc8bdfafa6
tree7ce542fc88b6a602b6b22211481229d5a387deeb
parentaa99c64fdd1cd6caccd708ea258d50f1db97b544
kineticscrolling: avoid stutter at tail of kinetic deceleration

When decelerating the kinetic scroll, we can get into a position where it
looks like we are stuttering. This happens because the amount we move is
so little that it takes multiple frames to make forward progress by one
pixel.

This prevents that by detecting when we have reached the slow stutter of
the deceleration and simply stops the deceleration phase immediately.

https://bugzilla.gnome.org/show_bug.cgi?id=765493
gtk/gtkkineticscrolling.c